FROM kylin-server-10-sp2-aarch64:b09

LABEL maintainer="BES"

ARG WEBSERVER_TAR_FILE='./BES-WEBSERVER-STANDALONE-3.1.0.1106-KYLIN10-KUNPENG-64.tar.gz'

WORKDIR /home/bes/BWS

ENV JAVA_HOME /usr/java/jdk1.8.0_232


ADD ${WEBSERVER_TAR_FILE} .
ADD ./application.yml ./conf
ADD ./run.sh .
ADD OpenJDK_jdk-8u232-linux-aarch64.tar.gz  /usr/java
RUN groupadd nobody && usermod -a -G nobody nobody;chmod +x ./run.sh

EXPOSE 5900

CMD ["/home/bes/BWS/run.sh"]
